package com.scau.database.enums;

import lombok.Getter;

/**
 * @ClassName: ResultCode
 * @Description: TODO
 * @Author: sunslikes
 * @Date: 2020/6/26 12:37
 * @Version: 1.0
 */
@Getter
public enum  ResultCode {

    SUCCESS(2000, "成功"),

    FAILED(1001, "响应失败"),

    VALIDATE_FAILED(3001, "参数校验失败错误"),

    ERROR(5000, "未知错误");


    private int code;
    private String msg;
    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
